Serial.Read Function

Reads Bytes of data from the buffer and returns them as a String. The optional Encoding parameter enables you to specify the text encoding of the data to be read.

Syntax

result = Serial.Read( Bytes, [Encoding] )

Parameters

Bytes

Integer

Encoding

TextEncoding (Optional)

Return Value

Result

String

Notes

Use the Encodings object to specify a text encoding.